package cn.sumpu.app.guoguojie.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.sumpu.app.guoguojie.constant.PictorialType;
import cn.sumpu.app.guoguojie.util.Common;

public class DoingPictorial implements Serializable {

    /**
     * 
     */
    private static final long    serialVersionUID   = -870011318841371681L;

    private String               identifier;
    private String               title;
    private String               type;
    private String               description;
    private String               member;
    private String               family;
    private String               postIp;
    private Integer              viewAmount;
    private Integer              commentAmount;
    private Integer              picAmount          = 0;
    private Integer              proAmount          = 0;
    private Date                 gmtCreated;
    private Date                 gmtModified;
    private String               image1;
    private String               image2;
    private String               image3;
    //	画报在主题里的排序
    private Integer              sort;

    private List<String>         picList6;

    private Member               memberObj;
    //图片的信息
    private Integer              picHeight;
    private Integer              picWidth;
    private String               picUrl;
    private List<DoingPictorial> picList4           = new ArrayList<DoingPictorial>();
    //评论量
    private Integer              commentCount;
    //分类名称
    private String               category;
    //会员信息
    private String               nickname;
    private String               imageServer;
    private String               avatar;
    //画报主题
    private String               pictorialTopic;
    private List<PictorialTopic> pictorialTopicList = new ArrayList<PictorialTopic>();
    private String               shortTitle;
    private String               cover;
    private String               display;
    public List<PictorialTopic> getPictorialTopicList() {
        return pictorialTopicList;
    }

    public void setPictorialTopicList(List<PictorialTopic> pictorialTopicList) {
        this.pictorialTopicList = pictorialTopicList;
    }

    public String getPictorialTopic() {
        return pictorialTopic;
    }

    public void setPictorialTopic(String pictorialTopic) {
        this.pictorialTopic = pictorialTopic;
    }

    public Integer getPicAmount() {
        return picAmount;
    }

    public void setPicAmount(Integer picAmount) {
        this.picAmount = picAmount;
    }

    public Integer getProAmount() {
        return proAmount;
    }

    public void setProAmount(Integer proAmount) {
        this.proAmount = proAmount;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public List<DoingPictorial> getPicList4() {
        return picList4;
    }

    public void setPicList4(List<DoingPictorial> picList4) {
        this.picList4 = picList4;
    }

    public Integer getPicHeight() {
        return picHeight;
    }

    public void setPicHeight(Integer picHeight) {
        this.picHeight = picHeight;
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getImageServer() {
        return imageServer;
    }

    public void setImageServer(String imageServer) {
        this.imageServer = imageServer;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public static long getSerialversionuid() {
        return serialVersionUID;
    }

    public Integer getViewAmount() {
        return viewAmount;
    }

    public void setViewAmount(Integer viewAmount) {
        this.viewAmount = viewAmount;
    }

    public int getImgCounts() {
        return picAmount + proAmount;
    }

    public String getIdentifier() {
        return identifier;
    }

    public void setIdentifier(String identifier) {
        this.identifier = identifier;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPostIp() {
        return postIp;
    }

    public void setPostIp(String postIp) {
        this.postIp = postIp;
    }

    public String getMember() {
        return member;
    }

    public void setMember(String member) {
        this.member = member;
    }

    public String getFamily() {
        return family;
    }

    public void setFamily(String family) {
        this.family = family;
    }

    public Date getGmtCreated() {
        return gmtCreated;
    }

    public void setGmtCreated(Date gmtCreated) {
        this.gmtCreated = gmtCreated;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getFormatDate() {
        return Common.getDate(gmtModified);
    }

    public List<String> getPicList6() {
        return picList6;
    }

    public void setPicList6(List<String> picList6) {
        this.picList6 = picList6;
    }

    public String getTypeName() {
        return PictorialType.getLabelByValue(type);
    }

    public Member getMemberObj() {
        return memberObj;
    }

    public void setMemberObj(Member memberObj) {
        this.memberObj = memberObj;
    }

    public Integer getPicWidth() {
        return picWidth;
    }

    public void setPicWidth(Integer picWidth) {
        this.picWidth = picWidth;
    }

    public String getImage1() {
        return image1;
    }

    public void setImage1(String image1) {
        this.image1 = image1;
    }

    public String getImage2() {
        return image2;
    }

    public void setImage2(String image2) {
        this.image2 = image2;
    }

    public String getImage3() {
        return image3;
    }

    public void setImage3(String image3) {
        this.image3 = image3;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getShortTitle() {
        return shortTitle;
    }

    public void setShortTitle(String shortTitle) {
        this.shortTitle = shortTitle;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getDisplay() {
        return display;
    }

    public void setDisplay(String display) {
        this.display = display;
    }
    public Integer getCommentAmount() {
        return commentAmount;
    }
    public void setCommentAmount(Integer commentAmount) {
        this.commentAmount = commentAmount;
    }
}
